package com.hotel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName ht_log
 */
@TableName(value ="ht_log")
@Data
public class HtLog implements Serializable {
    /**
     * 日志编号
     */
    @TableId
    private Long logNo;

    /**
     * 用户名
     */
    private String logUserName;

    /**
     * 操作
     */
    private String logOperate;

    /**
     * 时间
     */
    private Date logTime;

    /**
     * 备注
     */
    private String logRemark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        HtLog other = (HtLog) that;
        return (this.getLogNo() == null ? other.getLogNo() == null : this.getLogNo().equals(other.getLogNo()))
            && (this.getLogUserName() == null ? other.getLogUserName() == null : this.getLogUserName().equals(other.getLogUserName()))
            && (this.getLogOperate() == null ? other.getLogOperate() == null : this.getLogOperate().equals(other.getLogOperate()))
            && (this.getLogTime() == null ? other.getLogTime() == null : this.getLogTime().equals(other.getLogTime()))
            && (this.getLogRemark() == null ? other.getLogRemark() == null : this.getLogRemark().equals(other.getLogRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getLogNo() == null) ? 0 : getLogNo().hashCode());
        result = prime * result + ((getLogUserName() == null) ? 0 : getLogUserName().hashCode());
        result = prime * result + ((getLogOperate() == null) ? 0 : getLogOperate().hashCode());
        result = prime * result + ((getLogTime() == null) ? 0 : getLogTime().hashCode());
        result = prime * result + ((getLogRemark() == null) ? 0 : getLogRemark().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", logNo=").append(logNo);
        sb.append(", logUserName=").append(logUserName);
        sb.append(", logOperate=").append(logOperate);
        sb.append(", logTime=").append(logTime);
        sb.append(", logRemark=").append(logRemark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}